package keye.document_manage.util;

import java.util.Map;

public class SqliteProvider {
	
	public final static String FILED_TYPE = "type";
	public final static String FILED_NAME = "name";
	
	public String getType(Map<String, Object> para){
		StringBuilder sb = new StringBuilder();
		try {
			String tableName = (String) para.get("tableName");
			sb.append(" PRAGMA table_info("+tableName+")"); 
		} catch (org.apache.ibatis.binding.BindingException e) {
			System.out.println("没有查询字段，默认所有字段");
		}
		System.out.println("getType Sql："+sb.toString());
		return sb.toString();
	}
}
